#include <iostream>
using namespace std;

const int N = 25;
int a[N];
int n;
bool dp[N][N * 9];

int main() {
    string x;
    cin >> x;
    n = x.size();
    int sum = 0;
    for(int i = 0;i < n;i++)
    {
        a[i] = x[i] - '0';
        sum += a[i];
    }
    if(sum % 2 == 1)
    {
        cout << "No" << endl;
        return 0;
    }
    sum /= 2;
    dp[0][0] = true;
    for(int i = 1;i <= n;i++)
    {
        for(int j = 1;j <= sum;j++)
        {
            dp[i][j] = dp[i - 1][j];
            if(j >= a[i - 1])
            {
                dp[i][j] |= dp[i - 1][j - a[i - 1]];
            }
        }
    }
    cout << (dp[n][sum] ? "Yes" : "No") << endl;

    return 0;
}
// 64 位输出请用 printf("%lld")